package com.wanxi.log;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @description:
 * @author:zn
 * @company:万息科技
 * @date:2022/8/25-22:03:15
 */
public class Log4jDemo {
    // 创建Logger对象
    static Logger logger = (Logger) LogManager.getLogger(Log4jDemo.class);
    public static void main(String [] args) {
        System.out.println("main");
        logger.debug("debug");
        logger.info("info");
        logger.warn("warn");
        logger.error("error");
        logger.fatal("fatal");
        logger.trace("trace");
    }
}
